class Calculator {
  def calculate(x: Int, y: Int, s: String): Unit = {
    val str = s match {
      case "+" => x + y
      case "-" => x - y
      case "*" => x * y
      case "/" => x / y
      case _   => "Invalid operator"
    }
    println(str)

  }
}

val c = new Calculator()
c.calculate(10, 5, "+")
c.calculate(10, 5, "-")
c.calculate(10, 5, "*")
c.calculate(10, 5, "/")
c.calculate(10, 5, "@")
